home *** CD-ROM | disk | FTP | other *** search
Makefile | 1998-01-15 | 8.9 KB | 284 lines | [TEXT/MPS ] |
- #
- # File: MakeFile
- #
- # Contains: Build rules for Open Transport networking driver sample
- # code.
- #
- # Written by: Erik Staats
- #
- # Copyright: © 1996-1997 by Apple Computer, Inc., all rights reserved.
- #
- # Change History (most recent first):
- #
- # <FW37> 8/29/97 KDM Bumped version to 1.0.1a6. Piece of Blaze 1.1a6
- # <FW36> 6/19/97 GG Bumped version to 1.0.1a5.
- # <FW35> 5/29/97 GG Bumped version to 1.01a4.
- # <FW34> 5/16/97 GG Bumped FireWire version to 1.01a3.
- # <FW33> 4/29/97 GG Bumped version to 1.0.1a2.
- # <FW32> 4/10/97 GG Bumped version to 1.0.1d1.
- # <FW31> 3/27/97 GG Bumped version to 1.0 GM.
- # <FW30> 3/19/97 GG Bumped version to 1.0b3.
- # <FW29> 3/12/97 GG Bumped version to 1.0b2.
- # <FW28> 2/19/97 GG Bumped version to 1.0a3.
- # <FW27> 2/11/97 GG Bumped copyright to 1997.
- # <FW26> 2/11/97 GG Bumped version to 1.0a2.
- # <FW25> 2/4/97 GG
- # <FW24> 2/4/97 GG Bumped version to 1.0d24.
- # <FW23> 1/28/97 GG Bumped version to 1.0d23.
- # <FW22> 1/27/97 ES Changed protocol driver file type to 'ndrv'. Fixes bug #1621930.
- # <FW21> 1/21/97 GG Bumped version to 1.0d22.
- # <FW20> 1/16/97 ES Changed FWOTDriver file type to 'fwpd'.
- # <FW19> 1/3/97 ES Removed OTVDevice from build.
- # <FW18> 1/2/97 GG Bumped Version to 1.0d21.
- # <FW17> 12/20/96 GG Bumped Version to 1.0d20.
- # <FW16> 12/6/96 GG Bumped version to 1.0d19.
- # <FW15> 11/14/96 GG Bumped version to 1.0d18.
- # <FW14> 10/31/96 ES Bumped version to 1.0d17.
- # <FW13> 10/2/96 ES Bumped version to 1.0d15.
- # <FW12> 9/12/96 ES Bumped version to 1.0d14.
- # <FW11> 8/26/96 ES Changed to use MrC and SC. This MakeFile will now only work with
- # ETO #20 and forward.
- # <FW10> 7/11/96 ES Bumped version to 1.0d13.
- # <FW9> 7/11/96 ES Bumped version to 1.0d12.
- # <FW8> 6/24/96 ES Bumped version to 1.0d11.
- # <FW7> 6/20/96 ES Added some defs so we can do test builds using the MrC compiler.
- # <FW6> 5/30/96 ES Bumped version to 1.0d10.
- # <FW5> 4/19/96 ES Updated to version 1.0d9.
- # <FW4> 4/15/96 ES Added some dependencies to FWOTDriver.
- # <FW3> 3/29/96 ES Bumped version to 1.0d8.
- # <FW2> 3/28/96 ES Fill in contains and written by fields.
- # <FW1> 3/28/96 ES first checked in
- #
- #
-
- ################################################################################
- #
- # Define some directories
- #
-
- FWOTDriverRootDir = :
-
- FWSampleDir = {FWOTDriverRootDir}::
-
- SysInterfacesDir = {FWSampleDir}Interfaces:
- OTInterfacesDir = {FWOTDriverRootDir}Interfaces:
-
- SysLibrariesDir = {FWSampleDir}Libraries:
- OTLibrariesDir = {FWOTDriverRootDir}Libraries:
-
- FWOTDriverSourceDir = {FWOTDriverRootDir}FWOTDriver:
-
- BuildResultsDir = {FWSampleDir}BuildResults:
- ObjectsDir = {BuildResultsDir}Objects:
- ExtensionsDir = {BuildResultsDir}Extensions:
-
- ################################################################################
- #
- # Define version info
- #
-
- FWVersion = 1
- FWRevision = 0
- FWBuildStage = alpha
- FWBuildNumber = 6
- FWShortVersionString = '"1.0.1a6"'
- FWLongVersionString = '"1.0.1a6, © 1995-97 Apple Computer, Inc."'
-
-
- ################################################################################
- #
- # Define stuff for 68K compilation
- #
-
- C68KOptions = -d ccompile ∂
- -b ∂
- -r ∂
- -i "{SysInterfaces}" ∂
- -i "{CIncludes}" ∂
- -mc68020
-
- Asm68K = Asm
-
- C68K = SC
-
- Link68K = Link
-
-
- ################################################################################
- #
- # Define stuff for PowerPC compilation
- #
-
- MrCOptions = -opt speed ∂
- -w 2,7,35 ∂
- -d TRUE=1 ∂
- -d FALSE=0 ∂
- -i "{SysInterfacesDir}" ∂
- -i "{OTInterfacesDir}" ∂
- -i "{CIncludes}"
-
- CPPCOptions = {MrCOptions}
-
- AsmPPC = PPCAsm
-
- AsmPPCOptions = -dialect PowerPC ∂
- -o {Targ}
-
- CPPC = MrC
-
- LinkPPC = PPCLink
-
-
- ################################################################################
- #
- # Define stuff for rez
- #
-
- RezOptions = -d FWVersion={FWVersion} ∂
- -d FWRevision={FWRevision} ∂
- -d FWBuildStage={FWBuildStage} ∂
- -d FWBuildNumber={FWBuildNumber} ∂
- -d FWShortVersionString={FWShortVersionString} ∂
- -d FWLongVersionString={FWLongVersionString}
-
-
- ################################################################################
- #
- # Open Transport driver
- #
-
- "{ObjectsDir}DLPIRoutines.c.o" ƒ ∂
- "{FWOTDriverSourceDir}DLPIRoutines.c" ∂
- "{FWOTDriverSourceDir}DLPIRoutines.h" ∂
- "{FWOTDriverSourceDir}EntryPoints.h" ∂
- "{FWOTDriverSourceDir}HWSpecific.h"
- {CPPC} ∂
- "{FWOTDriverSourceDir}DLPIRoutines.c" ∂
- -i "{FWOTDriverSourceDir}" ∂
- {CPPCOptions} ∂
- -o {Targ}
-
- "{ObjectsDir}EntryPoints.c.o" ƒ ∂
- "{FWOTDriverSourceDir}EntryPoints.c" ∂
- "{FWOTDriverSourceDir}DLPIRoutines.h" ∂
- "{FWOTDriverSourceDir}EntryPoints.h" ∂
- "{FWOTDriverSourceDir}HWSpecific.h"
- {CPPC} ∂
- "{FWOTDriverSourceDir}EntryPoints.c" ∂
- -i "{FWOTDriverSourceDir}" ∂
- {CPPCOptions} ∂
- -o {Targ}
-
- "{ObjectsDir}HWSpecific.c.o" ƒ ∂
- "{FWOTDriverSourceDir}HWSpecific.c" ∂
- "{FWOTDriverSourceDir}DLPIRoutines.h" ∂
- "{FWOTDriverSourceDir}EntryPoints.h" ∂
- "{FWOTDriverSourceDir}HWSpecific.h"
- {CPPC} ∂
- "{FWOTDriverSourceDir}HWSpecific.c" ∂
- -i "{FWOTDriverSourceDir}" ∂
- {CPPCOptions} ∂
- -o {Targ}
-
- "{ExtensionsDir}FWOTDriver" ƒƒ ∂
- "{ObjectsDir}DLPIRoutines.c.o" ∂
- "{ObjectsDir}EntryPoints.c.o" ∂
- "{ObjectsDir}HWSpecific.c.o" ∂
- "{FWOTDriverSourceDir}FWOTDriver.exp"
- {LinkPPC} ∂
- -t 'ndrv' ∂
- -c 'fw ' ∂
- -xm sharedlibrary ∂
- -w ∂
- -@export "{FWOTDriverSourceDir}FWOTDriver.exp" ∂
- -init InitCFMRoutine ∂
- -term TerminateCFMRoutine ∂
- "{ObjectsDir}DLPIRoutines.c.o" ∂
- "{ObjectsDir}EntryPoints.c.o" ∂
- "{ObjectsDir}HWSpecific.c.o" ∂
- "{SysLibrariesDir}InterfaceLib.xcoff" ∂
- "{SysLibrariesDir}StdCLib.xcoff" ∂
- "{SysLibrariesDir}NameRegistryLib" ∂
- "{SysLibrariesDir}DriverServicesLib" ∂
- "{SysLibrariesDir}PCILib" ∂
- "{SysLibrariesDir}FWServicesLib" ∂
- "{OTLibrariesDir}OpenTptModuleLib" ∂
- "{SysLibrariesDir}PPCCRuntime.o" ∂
- -librename InterfaceLib.xcoff=InterfaceLib ∂
- -librename StdCLib.xcoff=StdCLib ∂
- -o {Targ}
-
- "{ExtensionsDir}FWOTDriver" ƒƒ ∂
- "{ObjectsDir}DLPIRoutines.c.o" ∂
- "{ObjectsDir}EntryPoints.c.o" ∂
- "{ObjectsDir}HWSpecific.c.o" ∂
- "{FWOTDriverSourceDir}FWOTDriver.exp" ∂
- "{FWOTDriverSourceDir}FWOTDriver.r" ∂
- "{FWOTDriverRootDir}MakeFile"
- Rez ∂
- {RezOptions} ∂
- "{FWOTDriverSourceDir}FWOTDriver.r" ∂
- -a ∂
- -o {Targ}
-
- "{ExtensionsDir}FWOTDriverLib" ƒƒ ∂
- "{ExtensionsDir}FWOTDriver"
- Duplicate ∂
- -y ∂
- "{ExtensionsDir}FWOTDriver" ∂
- {Targ}
- SetFile ∂
- -t 'shlb' ∂
- {Targ}
-
-
- ################################################################################
- #
- # Open Transport virtual device.
- #
-
- "{ObjectsDir}OTVDevice.c.o" ƒ ∂
- "{FWOTDriverSourceDir}OTVDevice.c" ∂
- "{FWOTDriverSourceDir}OTVDevice.h"
- {CPPC} ∂
- "{FWOTDriverSourceDir}OTVDevice.c" ∂
- -i "{FWOTDriverSourceDir}" ∂
- {CPPCOptions} ∂
- -o {Targ}
-
- "{ExtensionsDir}OTVDevice" ƒƒ ∂
- "{ObjectsDir}OTVDevice.c.o" ∂
- "{FWOTDriverSourceDir}OTVDevice.exp"
- {LinkPPC} ∂
- -t 'vdev' ∂
- -c 'fw ' ∂
- -xm sharedlibrary ∂
- -w ∂
- -@export "{FWOTDriverSourceDir}OTVDevice.exp" ∂
- -main TheVDeviceDescription ∂
- "{ObjectsDir}OTVDevice.c.o" ∂
- "{SysLibrariesDir}InterfaceLib.xcoff" ∂
- "{SysLibrariesDir}StdCLib.xcoff" ∂
- "{SysLibrariesDir}NameRegistryLib" ∂
- "{SysLibrariesDir}DriverServicesLib" ∂
- "{SysLibrariesDir}PCILib" ∂
- "{SysLibrariesDir}FWServicesLib" ∂
- "{SysLibrariesDir}PPCCRuntime.o" ∂
- -librename InterfaceLib.xcoff=InterfaceLib ∂
- -librename StdCLib.xcoff=StdCLib ∂
- -o {Targ}
-
- "{ExtensionsDir}OTVDevice" ƒƒ ∂
- "{FWOTDriverSourceDir}OTVDevice.r" ∂
- "{FWOTDriverRootDir}MakeFile"
- Rez ∂
- {RezOptions} ∂
- "{FWOTDriverSourceDir}OTVDevice.r" ∂
- -a ∂
- -o {Targ}
-
-
- FWOTDriver ƒ ∂
- "{ExtensionsDir}FWOTDriver" ∂
- "{ExtensionsDir}FWOTDriverLib"
-